#ifndef __SCNS_BEEP_H__
#define __SCNS_BEEP_H__

#include "ScnsConfig.h"

#if defined(SCNS_BEEP_ENABLE)&&SCNS_BEEP_ENABLE==1

#include "ScnsYing.h"
#include "ScnsBspBeep.h"

typedef enum
{
    SCNS_BEEP_TONE_OFF=0,
    SCNS_BEEP_TONE_ON=1024,

    SCNS_BEEP_TONE_C3=262,
    SCNS_BEEP_TONE_D3=294,
    SCNS_BEEP_TONE_E3=330,
    SCNS_BEEP_TONE_F3=350,
    SCNS_BEEP_TONE_G3=393,
    SCNS_BEEP_TONE_A3=441,
    SCNS_BEEP_TONE_B3=495,

    SCNS_BEEP_TONE_C4=525,
    SCNS_BEEP_TONE_D4=589,
    SCNS_BEEP_TONE_E4=661,
    SCNS_BEEP_TONE_F4=700,
    SCNS_BEEP_TONE_G4=786,
    SCNS_BEEP_TONE_A4=882,
    SCNS_BEEP_TONE_B4=990,

    SCNS_BEEP_TONE_C5=1046,
    SCNS_BEEP_TONE_D5=1175,
    SCNS_BEEP_TONE_E5=1318,
    SCNS_BEEP_TONE_F5=1397,
    SCNS_BEEP_TONE_G5=1568,
    SCNS_BEEP_TONE_A5=1750,
    SCNS_BEEP_TONE_B5=1976,
}ScnsBeepTone;

extern ScnsStatus scnsBeepInit(void);
extern void scnsBeepAdd(const char*type);
extern void scnsBeepInterrupt(void);
extern void scnsBeepNext(void);
extern void scnsBeepTest(void);
#endif
#endif
